package com.dondedesigns.eh.controller.permission;

import java.util.List;

import com.dondedesigns.eh.persistence.Role;
import com.dondedesigns.eh.persistence.dao.RoleDAO;
import com.opensymphony.xwork2.ActionSupport;

public class RoleManagement extends ActionSupport {
	
	private RoleDAO roleDAO;
	
	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}
	
	public List<Role> getRolesList() {
		return roleDAO.select();
	}

	public RoleDAO getRoleDAO() {
		return roleDAO;
	}

	public void setRoleDAO(RoleDAO roleDAO) {
		this.roleDAO = roleDAO;
	}

}
